package cn.com.surker.control.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工控机原始消耗盘表
 * </p>
 *
 * @author admin
 * @since 2025-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ControlExpendBatch extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 标识
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 生产线ID
	 */
	private Long lineId;

	/**
	 * 第几盘
	 */
	private Integer batchNum;

	/**
	 * 盘方量
	 */
	private Double batchStere;

	/**
	 * 盘记录时间
	 */
	private Date batchTime;

	/**
	 * erp中的工控机消耗发货单,关联ControlInvoice表的id
	 */
	private Long erpInvoiceId;

	/**
	 * 工控盘记录号,如果盘号不唯一,则根据工控发货单号和盘号组合
	 */
	private String conBatchNo;

	/**
	 * 工控下料类型(0:自动1:手动)
	 */
	private Integer type;


}
